<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.thymeleaf.org"
      layout:decorator="layout/layout">
<title layout:fragment="title">住户审核</title>
<body>
<div class="main-content" layout:fragment="content">
    <div class="breadcrumbs" id="breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a th:href="@{/car_dossier/}" href="/admin/">住户审核</a>
            </li>
            <li class="active">住户详情</li>
        </ul>
    </div>
    <!-- .page-content -->
    <div class="page-content">
        <form method="post"  id="user_dossier_form"  class="form-horizontal">
            <input id="id" name="id" style="display: none" th:value="${dossier.id}"/>
            <h4 class="header blue ">基本信息</h4>
            <div class="row">
                <div class="col-xs-10 col-xs-offset-1">
                    <table class="table table-striped table-bordered table-hover dataTable" aria-describedby="sample-table-2_info">
                        <tbody role="alert" aria-live="polite" aria-relevant="all">
                        <tr class="odd">
                            <td width="20%" style="text-align: right">
                                姓名：
                            </td>
                            <td width="30%" class="">
                                <div class="col-xs-12">
                                    <div class="col-xs-10 col-sm-10">
                                        <input type="text" id="name" name="name" readonly th:value="${dossier.name}"  class="width-100"/>
                                    </div>
                                </div>
                            </td>
                            <td width="20%" style="text-align: right">
                                电话：
                            </td>
                            <td width="30%" class="">
                                <div class="col-xs-12">
                                    <div class="col-xs-10 col-sm-10">
                                        <input type="text" id="company" name="company" readonly th:value="${dossier.phone}" class="width-100"/>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" style="text-align: right">
                                性别：
                            </td>
                            <td width="30%" class="">
                                <div class="col-xs-12">
                                    <div class="col-xs-10 col-sm-10">
                                        <input type="text" th:value="${dossier.sex eq '1'?'男':'女'}" readonly  class="width-100"/>
                                    </div>
                                </div>
                            </td>
                            <td width="20%" style="text-align: right">
                                详细地址：
                            </td>
                            <td width="30%" class="">
                                <div class="col-xs-12">
                                    <div class="col-xs-10 col-sm-10">
                                        <input type="text" id="parkId" name="parkId" readonly th:value="${dossier.address}"  class="width-100"/>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr class="odd">
                            <td width="20%" style="text-align: right">
                                住户类型：
                            </td>
                            <td width="30%" class="">
                                <div class="col-xs-12">
                                    <div class="col-xs-10 col-sm-10">
                                        <input type="text"  readonly th:value="${dossier.type == 1 ?'住户':'租客'}"  class="width-100"/>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="modal-footer center">
                <a th:if="${dossier.status == 0}" class="btn btn-success btn-sm" id="add_btn">
                    <i class="icon-save"></i>
                    通过
                </a>
                <a th:if="${dossier.status == 0}" class="btn btn-danger btn-sm" id="cancel_btn">
                    <i class="icon-ban-circle"></i>
                    驳回
                </a>
                <a class="btn btn-grey btn-sm" id="back_btn">
                    <i class="icon-backward"></i>
                    返回
                </a>
            </div>
        </form>
    </div>
</div>
<script layout:fragment="script" th:src="@{/assets/js/userPropertyDossier/detail.js}"></script>
</body>
</html>